# Author: HZT
# Date: 2023/8/24
import time
import unittest
from htmltestreport import HTMLTestReport
from config.config_loader import config

from scripts import test01_web_sk_top, test03_web_sk_hl, test04_web_sk_pm, test02_web_sk_zl, test05_web_sk_jk

suite = unittest.TestSuite()
# suite.addTest(test04_web_sk_pm.TestWebSkPm("test08_sk_pm"))
# suite.addTest(test01_web_sk_top.TestWebSkTop("test02_sk_top"))
suite.addTest(unittest.makeSuite(test05_web_sk_jk.TestWebSkJk))

# suite = unittest.defaultTestLoader.discover("./scripts", "test01_web_sk_top.py")
# suite = unittest.defaultTestLoader.discover("./scripts", "test001_web_login.py")
# file_path = DIR_PATH + "/report/report-{}.html".format(time.strftime("%Y-%m-%d %H-%M-%S"))

file_path = config.DIR_PATH + "/report/report.html"
HTMLTestReport(file_path, "卡商平台测试报告", "描述：test").run(suite)
